Skip to content

feat: notify diego of route updates#4298

Merged
philippthun merged 4 commits intocloudfoundry:mainfrom
sap-contributions:maxmoehl/issue-4286
Apr 16, 2025
Merged

feat: notify diego of route updates#4298
philippthun merged 4 commits intocloudfoundry:mainfrom
sap-contributions:maxmoehl/issue-4286

Conversation

@maxmoehl
Copy link
Copy Markdown
Member

@maxmoehl maxmoehl commented Apr 10, 2025

After updating a route via the new update route endpoint, it was only stored in the database. Since routes can be changed without restarting the application this commit adds logic to also push the update to diego.

Resolves: #4286

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

After updating a route via the new update route endpoint, it was only
stored in the database. Since routes can be changed without restarting
the application this commit adds logic to also push the update to diego.

Resolves: cloudfoundry#4286
Co-Authored-By: Clemens Hoffmann <clemens.hoffmann@sap.com>
@hoffmaen hoffmaen force-pushed the maxmoehl/issue-4286 branch from 49a566d to 52f18bf Compare April 10, 2025 13:22
@maxmoehl maxmoehl marked this pull request as ready for review April 11, 2025 08:32
Comment thread spec/unit/actions/route_update_spec.rb
Comment thread spec/unit/actions/route_update_spec.rb Outdated
Comment thread spec/unit/actions/route_update_spec.rb
@hoffmaen
Copy link
Copy Markdown
Contributor

Thanks for the valuable feedback @philippthun !
I changed the route_update and the spec file as you suggested.

@maxmoehl maxmoehl requested a review from philippthun April 14, 2025 05:32
Copy link
Copy Markdown
Member

@philippthun philippthun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One additional thing that came into my mind...

Comment thread app/actions/route_update.rb Outdated
@philippthun philippthun merged commit c66d671 into cloudfoundry:main Apr 16, 2025
8 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Apr 16, 2025
Changes in cloud_controller_ng:

- feat: notify diego of route updates
    PR: cloudfoundry/cloud_controller_ng#4298
    Author: Maximilian Moehl <44866320+maxmoehl@users.noreply.github.com>
    Author: Clemens Hoffmann <clemens.hoffmann@sap.com>
@maxmoehl maxmoehl deleted the maxmoehl/issue-4286 branch April 16, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating a Route does not Propagate to Diego for Running Applications

3 participants